package com.broadsoft.cluster.smartcluster;

import org.jgroups.Address;
import org.jgroups.Message;
import org.jgroups.Receiver;
import org.jgroups.View;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * 
* FIXME: <A few lines of description of what class is about and what it does.> 
*
* <HR/><B>Modification Block</B>
* <P>
* Version: FIXME: 1.0.1 <BR>
* Author: FIXME: luzhen
* Date: 2011-9-21
* TAG: <A short name to find out all changed made by this modification.>
* Comments: Created.
* Bug fix NO.: <If required>
* </P>
* <P>
* ... Other Modifications following above structure.
* </P>
*
 */
public class DefaultReceiverAdapter implements Receiver {

    private static final Logger logger = LoggerFactory.getLogger(DefaultReceiverAdapter.class);
    public void receive(Message msg) {
        System.out.println("receive");
    }

    public byte[] getState() {
        System.out.println("getState");
        return null;
    }

    public void setState(byte[] state) {
        System.out.println("setState");
    }

    public void viewAccepted(View view) {
        System.out.println("viewAccepted");
    }

    public void suspect(Address mbr) {
        System.out.println("suspect------"+mbr);
    }

    public void block() {
        System.out.println("block");
    }
}
